﻿using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace BasharLulu.QuranBookmark.WP7
{
    public class SuraViewModel : INotifyPropertyChanged
    {
        private string _SuraEnglishName;
        public string SuraEnglishName
        {
            get
            {
                return _SuraEnglishName;
            }
            set
            {
                if (value != _SuraEnglishName)
                {
                    _SuraEnglishName = value;
                    NotifyPropertyChanged("SuraEnglishName");
                }
            }
        }

        private string _SuraArabicName;
        public string SuraArabicName
        {
            get
            {
                return _SuraArabicName;
            }
            set
            {
                if (value != _SuraArabicName)
                {
                    _SuraArabicName = value;
                    NotifyPropertyChanged("SuraArabicName");
                }
            }
        }

        private int _SuraNumber;
        public int SuraNumber
        {
            get
            {
                return _SuraNumber;
            }
            set
            {
                if (value != _SuraNumber)
                {
                    _SuraNumber = value;
                    NotifyPropertyChanged("SuraNumber");
                }
            }
        }

        private int _NumberOfAyat;
        public int NumberOfAyat
        {
            get
            {
                return _NumberOfAyat;
            }
            set
            {
                if (value != _NumberOfAyat)
                {
                    _NumberOfAyat = value;
                    NotifyPropertyChanged("NumberOfAyat");
                }
            }
        }

        private int _AyaNumber = 1;
        public int AyaNumber
        {
            get
            {
                return _AyaNumber;
            }
            set
            {
                if (value != _AyaNumber)
                {
                    _AyaNumber = value;
                    NotifyPropertyChanged("AyaNumber");
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}